Skip to content

feat: add contract safeguards, fuzzing, ABI artifact, and refund resolution - #1419

Merged
Akanimoh12 merged 4 commits into
Akanimoh12:test-implement-dripsfrom
Danlee76:feature/1191-contract-circuit-breaker
Aug 27, 2026
Merged

feat: add contract safeguards, fuzzing, ABI artifact, and refund resolution#1419
Akanimoh12 merged 4 commits into
Akanimoh12:test-implement-dripsfrom
Danlee76:feature/1191-contract-circuit-breaker

Conversation

@Danlee76

@Danlee76 Danlee76 commented Aug 25, 2026

Copy link
Copy Markdown

Summary

  • add a contract-level withdrawal circuit breaker with fixed-bucket rolling volume tracking, auto-pause events, admin reset/configuration, and contract tests
  • add entrypoint-oriented fuzz coverage plus a CI workflow with bounded PR fuzzing and larger scheduled fuzzing
  • add contract ABI/spec artifact generation, freshness checking in CI, release attachment, and docs link to the machine-readable spec
  • add creator refund resolution APIs for received requests, approval/rejection prepare flows, signed transaction submit flows, OpenAPI paths, and backend tests for authorization, invalid transitions, and pagination

Testing

  • git diff --check
  • attempted cargo test -p tipz-contract test_circuit_breaker, but local Rust 1.88.0 is partially installed and rustup stalls while repairing/downloading components
  • attempted backend npm test -- refunds.test.ts, but backend dependencies were missing and npm install timed out before installing Vitest

Closes #1191
Closes #1196
Closes #1197
Closes #1198

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@Danlee76 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Akanimoh12

Copy link
Copy Markdown
Owner

Please close your pr well and open pr against the right branch, not main

@Danlee76 Danlee76 changed the title feat(contract): add withdrawal circuit breaker feat: add contract safeguards, fuzzing, ABI artifact, and refund resolution Aug 26, 2026
@Danlee76
Danlee76 changed the base branch from main to test-implement-drips August 26, 2026 01:02
@Akanimoh12

Copy link
Copy Markdown
Owner

please resolve conflicts

…ture/1191-contract-circuit-breaker

# Conflicts:
#	backend/src/modules/refunds/refunds.routes.ts
#	backend/src/modules/refunds/refunds.service.ts
#	backend/src/modules/refunds/refunds.test.ts
#	contracts/tipz/src/lib.rs
#	contracts/tipz/src/profile.rs
#	contracts/tipz/src/test/mod.rs
@gitguardian

gitguardian Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
21431574 Triggered Generic Password 5c310d1 .github/workflows/pr-checks.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@Akanimoh12
Akanimoh12 merged commit 01dbe91 into Akanimoh12:test-implement-drips Aug 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants